package com.logistics.system.service;

import java.util.List;
import com.logistics.system.domain.Waybills;

/**
 * 运单Service接口
 * 
 * @author logistics
 * @date 2024-06-23
 */
public interface IWaybillsService 
{
    /**
     * 查询运单
     * 
     * @param waybillId 运单主键
     * @return 运单
     */
    public Waybills selectWaybillsByWaybillId(Long waybillId);

    /**
     * 查询运单列表
     * 
     * @param waybills 运单
     * @return 运单集合
     */
    public List<Waybills> selectWaybillsList(Waybills waybills);

    /**
     * 新增运单
     * 
     * @param waybills 运单
     * @return 结果
     */
    public int insertWaybills(Waybills waybills);

    /**
     * 修改运单
     * 
     * @param waybills 运单
     * @return 结果
     */
    public int updateWaybills(Waybills waybills);

    /**
     * 批量删除运单
     * 
     * @param waybillIds 需要删除的运单主键集合
     * @return 结果
     */
    public int deleteWaybillsByWaybillIds(Long[] waybillIds);

    /**
     * 删除运单信息
     * 
     * @param waybillId 运单主键
     * @return 结果
     */
    public int deleteWaybillsByWaybillId(Long waybillId);

    Long selectTransportPlanIdByWaybillId(Long waybillId);
}
